#ifndef APP_UART_STRING_H
#define APP_UART_STRING_H
#include "stdint.h"
#include "thread/threading.h"

typedef struct {
    uint8_t* data;
    int length;
} UString;

class UartString
{
private:
    uint8_t* data;
    uint32_t start;
    uint32_t end;
    const uint32_t size;
public:
    UartString(/* args */);
    ~UartString();
    UString getString();
    uint32_t getStart();
    bool clear();
    bool setStart(uint32_t _start);
    void addString(uint8_t* string, uint32_t len);
};

#endif